package main

import "fmt"

type Person struct {
	name string
	age int
}

func (p Person) getPersonInfo()  {
	fmt.Println("p =", p)
}

func main() {
	p := Person{"mike", 11}

	pFunc := p.getPersonInfo
	pFunc()	// p = {mike 11}
}
